#include "mainwindow.h"
#include<qsplashscreen>
#include<QTest>
#include <QApplication>
#include <QSplashScreen>

int main(int argc, char *argv[])
{

    QApplication a(argc, argv);

    QSplashScreen splash(QPixmap(":/111.png"));
    splash.show();
    splash.showMessage("程序正在加载......", Qt::AlignTop|Qt::AlignRight, Qt::black);

    a.processEvents();
    QTest::qSleep(5000);

    MainWindow w;
    w.show();
    splash.finish(&w);

    return a.exec();
}
